package jsyf.oa.entity.yuce;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by y on 2018/3/19.
 */
@Entity
@Table(name = "t_rpt_friday_yuce_main", schema = "oa", catalog = "")
public class YuceMainEntity extends BaseEntity implements Serializable {

    private String auditorName;
    private String day;
    private Integer status;
    private String companyId;
    private String bigRegionId;
    private String createUserId;
    private String auditorId;
    private BigDecimal actualSaleRemark;
    private String firstMonth;
    private String secondMonth;
    private String thirdMonth;
    private BigDecimal firstMonthYuce;
    private BigDecimal secondMonthYuce;
    private BigDecimal thirdMonthYuce;
    private BigDecimal firstMonthSub;
    private BigDecimal secondMonthSub;
    private BigDecimal thirdMonthSub;
    private BigDecimal firstMonthBef;
    private BigDecimal secondMonthBef;
    private BigDecimal thirdMonthBef;

    public YuceMainEntity() {
        this.auditorName = "";
        this.day = "";
        this.status = -1;
        this.companyId = "";
        this.bigRegionId = "";
        this.createUserId = "";
        this.auditorId = "";
        this.actualSaleRemark = new BigDecimal(0);
        this.firstMonth = "";
        this.secondMonth = "";
        this.thirdMonth = "";
        this.firstMonthYuce = new BigDecimal(0);
        this.secondMonthYuce = new BigDecimal(0);
        this.thirdMonthYuce = new BigDecimal(0);
        this.firstMonthSub = new BigDecimal(0);
        this.secondMonthSub = new BigDecimal(0);
        this.thirdMonthSub = new BigDecimal(0);
        this.firstMonthBef = new BigDecimal(0);
        this.secondMonthBef = new BigDecimal(0);
        this.thirdMonthBef = new BigDecimal(0);
    }

    public BigDecimal getFirstMonthYuce() {
        return firstMonthYuce;
    }

    public void setFirstMonthYuce(BigDecimal firstMonthYuce) {
        this.firstMonthYuce = firstMonthYuce;
    }

    public BigDecimal getSecondMonthYuce() {
        return secondMonthYuce;
    }

    public void setSecondMonthYuce(BigDecimal secondMonthYuce) {
        this.secondMonthYuce = secondMonthYuce;
    }

    public BigDecimal getThirdMonthYuce() {
        return thirdMonthYuce;
    }

    public void setThirdMonthYuce(BigDecimal thirdMonthYuce) {
        this.thirdMonthYuce = thirdMonthYuce;
    }

    public String getFirstMonth() {
        return firstMonth;
    }

    public void setFirstMonth(String firstMonth) {
        this.firstMonth = firstMonth;
    }

    public String getSecondMonth() {
        return secondMonth;
    }

    public void setSecondMonth(String secondMonth) {
        this.secondMonth = secondMonth;
    }

    public String getThirdMonth() {
        return thirdMonth;
    }

    public void setThirdMonth(String thirdMonth) {
        this.thirdMonth = thirdMonth;
    }

    public String getAuditorName() {
        return auditorName;
    }

    public void setAuditorName(String auditorName) {
        this.auditorName = auditorName;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getBigRegionId() {
        return bigRegionId;
    }

    public void setBigRegionId(String bigRegionId) {
        this.bigRegionId = bigRegionId;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getAuditorId() {
        return auditorId;
    }

    public void setAuditorId(String auditorId) {
        this.auditorId = auditorId;
    }

    public BigDecimal getActualSaleRemark() {
        return actualSaleRemark;
    }

    public void setActualSaleRemark(BigDecimal actualSaleRemark) {
        this.actualSaleRemark = actualSaleRemark;
    }

    public BigDecimal getFirstMonthSub() {
        return firstMonthSub;
    }

    public void setFirstMonthSub(BigDecimal firstMonthSub) {
        this.firstMonthSub = firstMonthSub;
    }

    public BigDecimal getSecondMonthSub() {
        return secondMonthSub;
    }

    public void setSecondMonthSub(BigDecimal secondMonthSub) {
        this.secondMonthSub = secondMonthSub;
    }

    public BigDecimal getThirdMonthSub() {
        return thirdMonthSub;
    }

    public void setThirdMonthSub(BigDecimal thirdMonthSub) {
        this.thirdMonthSub = thirdMonthSub;
    }

    public BigDecimal getFirstMonthBef() {
        return firstMonthBef;
    }

    public void setFirstMonthBef(BigDecimal firstMonthBef) {
        this.firstMonthBef = firstMonthBef;
    }

    public BigDecimal getSecondMonthBef() {
        return secondMonthBef;
    }

    public void setSecondMonthBef(BigDecimal secondMonthBef) {
        this.secondMonthBef = secondMonthBef;
    }

    public BigDecimal getThirdMonthBef() {
        return thirdMonthBef;
    }

    public void setThirdMonthBef(BigDecimal thirdMonthBef) {
        this.thirdMonthBef = thirdMonthBef;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("DAY", getDay());
        obj.put("COMPANY_ID", getCompanyId());
        obj.put("STATUS", getStatus());
        obj.put("BIG_REGION_ID", getBigRegionId());
        obj.put("CREATE_USER_ID", getCreateUserId());
        obj.put("CREATE_TIME", getCreateTime());
        obj.put("AUDITOR_ID", getAuditorId());
        obj.put("ACTUAL_SALE_REMARK", getActualSaleRemark());
        obj.put("AUDITOR_NAME", getAuditorName());
        obj.put("FIRST_MONTH_YUCE", getFirstMonthYuce());
        obj.put("SECOND_MONTH_YUCE", getSecondMonthYuce());
        obj.put("THIRD_MONTH_YUCE", getThirdMonthYuce());
        obj.put("FIRST_MONTH", getFirstMonth());
        obj.put("SECOND_MONTH", getSecondMonth());
        obj.put("THIRD_MONTH", getThirdMonth());
        obj.put("FIRST_MONTH_SUB", getFirstMonthSub());
        obj.put("SECOND_MONTH_SUB", getSecondMonthSub());
        obj.put("THIRD_MONTH_SUB", getThirdMonthSub());
        obj.put("FIRST_MONTH_BEF", getFirstMonthBef());
        obj.put("SECOND_MONTH_BEF", getSecondMonthBef());
        obj.put("THIRD_MONTH_BEF", getThirdMonthBef());
        return obj;
    }

    @Override
    public String getTableName() {
        return "t_rpt_friday_yuce_main";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("DAY", "day");
        obj.put("COMPANY_ID", "companyId");
        obj.put("STATUS", "status");
        obj.put("BIG_REGION_ID", "bigRegionId");
        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("CREATE_TIME", "createTime");
        obj.put("AUDITOR_ID", "auditorId");
        obj.put("ACTUAL_SALE_REMARK", "actualSaleRemark");
        obj.put("AUDITOR_NAME", "auditorName");
        obj.put("FIRST_MONTH_YUCE", "firstMonthYuce");
        obj.put("SECOND_MONTH_YUCE", "secondMonthYuce");
        obj.put("THIRD_MONTH_YUCE", "thirdMonthYuce");
        obj.put("FIRST_MONTH", "firstMonth");
        obj.put("SECOND_MONTH", "secondMonth");
        obj.put("THIRD_MONTH", "thirdMonth");
        obj.put("FIRST_MONTH_SUB", "firstMonthSub");
        obj.put("SECOND_MONTH_SUB", "secondMonthSub");
        obj.put("THIRD_MONTH_SUB", "thirdMonthSub");
        obj.put("FIRST_MONTH_BEF", "firstMonthBef");
        obj.put("SECOND_MONTH_BEF", "secondMonthBef");
        obj.put("THIRD_MONTH_BEF", "thirdMonthBef");
        return obj;
    }
}